Skip to content

capnslog: add LogDepth to PackageLogger#46

Open
betawaffle wants to merge 1 commit intocoreos:mainfrom
betawaffle:master
Open

capnslog: add LogDepth to PackageLogger#46
betawaffle wants to merge 1 commit intocoreos:mainfrom
betawaffle:master

Conversation

@betawaffle
Copy link

I want to be able to wrap capnslog with convenience functions and application-specific helpers, but I need to be able to control the caller depth. This change makes that possible.

This is to enable wrapping capnslog with custom logging helpers where you
would need to control the caller depth.
@barakmich
Copy link
Contributor

On the one hand, I have no problem with it. On the other, this pushes writing, eg, capnslog.DEBUG everywhere onto the user.

Do you have a quick wrapper example, @betawaffle ?

@betawaffle
Copy link
Author

After writing a custom formatter, which I did today, I'm much less certain. Perhaps what's needed instead are some good examples of Entry objects a user could create.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants